#include <iostream>
using namespace std;
char *buildstr(char c, int n)
{
    char* ps=new char[n+1];
    ps[n]='\0';
    while(n--) ps[n]=c;
    return ps;
}
int main()
{
    int times=0;
    char ch;
    cin>>ch;
    cin>>times;
    char *p=buildstr(ch, times);
    cout<<p<<endl;
    delete [] p;
    p=buildstr('+',20);
    cout<<p<<"-DONE-"<<p<<endl;
    delete [] p;
    return 0;
}